#include "Object.h"
#include <cstdlib>

namespace MySTL
{

Object::~Object()
{
}

void* Object::operator new(size_t size) throw()
{
	return malloc(size);
}

void Object::operator delete(void* p)
{
	return free(p);
}

void* Object::operator new[](size_t size) throw()
{
	return malloc(size);
}

void Object::operator delete[](void* p)
{
	return free(p);
}

void* Object::operator new(size_t size, void* loc) throw()
{
	(void)size;
	return loc;
}

void Object::operator delete(void* p, void*)
{
	return free(p);
}

void* Object::operator new(size_t size, const std::nothrow_t&) throw()
{
	return malloc(size);
}

void Object::operator delete(void* p, const std::nothrow_t&)
{
	return free(p);
}

bool Object::operator ==(const Object& obj)
{
	return this == &obj;
}

bool Object::operator !=(const Object& obj)
{
	return !(*this == obj);
}

}